package org.example.software.service;

import org.example.software.entity.DTO.UserUpdate;
import org.example.software.entity.User;
import org.example.software.entity.VO.UserInfo;

public interface UserService {
    //用户注册
    public boolean register(User user);

    //用户登录
    public String login(User user);

    //用户个人信息展示
    public UserInfo getUserByToken(String token);

    //用户个人信息修改
    public boolean updateUser(String token, UserUpdate userUpdate);

    //用户密码修改
    public boolean changePassword(String token, String oldPassword, String newPassword);
}

